package com.blb.mvc.entity;

import java.time.LocalDate;
import java.time.format.DateTimeFormatter;
import java.util.Date;

/**
 * @author lvtian
 * @date 2022/12/29 14:07
 */
public class Student {

    private Long id;
    private String name;
    private Integer age;
    private String subject;
    private String address;
    private Date studyDate;

    public Student(Long id, String name, Integer age, String subject, String address, Date studyDate) {
        this.id = id;
        this.name = name;
        this.age = age;
        this.subject = subject;
        this.address = address;
        this.studyDate = studyDate;
    }

    public Student() {
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Date getStudyDate() {
        return studyDate;
    }

    public void setStudyDate(Date studyDate) {
        this.studyDate = studyDate;
    }

    @Override
    public String toString() {
        return "Student{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", subject='" + subject + '\'' +
                ", address='" + address + '\'' +
                ", studyDate=" + studyDate +
                '}';
    }
}
